package com.chiry.business.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;


//curl http://192.168.1.125:8080/chiry-business/business/test
//curl http://loaclhost:9301/business/test

@RestController
@RequestMapping("/business")
public class BusinessTestController {
    @GetMapping("/test")
    public Map<String ,Object> TestMethod(){
        Map<String, Object> result = new HashMap<>();
        result.put("status", "success ");
        result.put("msg", "test request success ");
        return result;
    }
}
